//
//  ViewController.swift
//  JLLoveDiary
//
//  Created by Jiang Chencheng on 2024/7/31.
//

import UIKit
import Chain
import JLApiCenter

class ViewController: UIViewController {

    private lazy var textLabel = UILabel()
        .x
        .text("Demo")
        .instance

}

// MARK: - override
extension ViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        doRequestTask()
    }
    
}

// MARK: - Method
private extension ViewController {
    
    func doRequestTask() {
        Task {
            do {
                let name: String = try await JLApiCenter.request(.GET("get", ["name": "aaa"]))
            } catch {
                print("\(error)")
            }
            
        }
    }
    
}

